package org.jackysoft.entity;

import javax.persistence.Entity;

import org.jackysoft.annotations.OptionalText;
import org.jackysoft.entity.AbstractEntity;
import org.jackysoft.report.TradeType;

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
public class ContractClient extends AbstractEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3266799503748264305L;
	
	private String name;	
	
	private TradeType ownerType;
	
	
	
	public ContractClient() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ContractClient(String name) {
		super();
		this.name = name;
	}

	@OptionalText
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	

	@Override
	public String toString() {
		return this.getName();
	}

	public TradeType getOwnerType() {
		return ownerType;
	}

	public void setOwnerType(TradeType ownerType) {
		this.ownerType = ownerType;
	}

	
	
}